﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TrangChu.Master" AutoEventWireup="true" CodeBehind="TrangChu.aspx.cs" Inherits="Airplane.TrangChu1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="SlideShowControl/SlideShow.ascx" tagname="SlideShow" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <style type="text/css">
    .style1
    {
        width:25%;
        color: Maroon;
        font-family:Arial;
        font-size:medium;
    }
    .style2
    {
        width:70%;
    }
</style>
    <div style=" height:410px; width:700px; margin-left:30px; margin-top:10px; background-color: Orange;">
        <uc1:SlideShow ID="SlideShow1" runat="server" Height="400" Width="700" 
            XMLSource="~/xml/500x281.xml" xPath="site500x281" />
    </div>
    <div style="width:100%; text-align:center; height:60px; color:Blue;">    
     <h2>Đặt vé trực tuyến</h2>
    </div>
    <div>
    <table style="width:80%; margin-left:80px; font-family:@Arial Unicode MS; font-size:medium">
    <tr>
        <td class="style1">
        Loại vé 
        </td>        
        <td class="style2">
            Một chiều<asp:RadioButton ID="rbMotChieu" 
                runat="server" GroupName="GrLoaiVe" AutoPostBack="True" Checked="True" /> 
            &nbsp;Khứ hồi 
            <asp:RadioButton ID="rbKhuHoi" runat="server" GroupName="GrLoaiVe" 
                AutoPostBack="True" />
            &nbsp;Một chặng <asp:RadioButton ID="rbMotChang" runat="server" 
                GroupName="GrLoaiVe" /> 
        </td>
    </tr>
    <tr>
    <td class="style1">
        Khởi hành
    </td>
    <td class="style2">
        <asp:DropDownList ID="ddlSanBayDi" runat="server" DataSourceID="SqlDataSource1" 
            DataTextField="SanBayDi" DataValueField="SanBayDi" AutoPostBack="True" >
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:AirplaneConnectionString %>" 
            SelectCommand="SELECT DISTINCT [SanBayDi] FROM [TUYENBAY]">
        </asp:SqlDataSource>
    </td>
    </tr>
    <tr>
    <td class="style1">
        Nơi đến
    </td>
    <td class="style2">
        <asp:DropDownList ID="ddlSanBayDen" runat="server" 
            DataSourceID="SqlDataSource2" DataTextField="SanBayDen" 
            DataValueField="SanBayDen" >
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:AirplaneConnectionString %>" 
            SelectCommand="SELECT DISTINCT [SanBayDen] FROM [TUYENBAY] WHERE ([SanBayDi] = @SanBayDi)">
            <SelectParameters>
                <asp:ControlParameter ControlID="ddlSanBayDi" Name="SanBayDi" 
                    PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </td>
    </tr>
    <tr>
    <td class="style1">
        NgàyDi
    </td>
    <td class="style2">
     <asp:ScriptManager ID="ScriptManager1" runat="server">
                      </asp:ScriptManager>
      <asp:TextBox ID="txtNgayDi" runat="server"></asp:TextBox><asp:CalendarExtender ID="CalendarExtender1"
          runat="server" TargetControlID="txtNgayDi">
      </asp:CalendarExtender>
    </td>
        
    </tr>
    <tr>
        <td class="style1">
            Ngày về
        </td>
        <td class="style2">
            <asp:TextBox ID="txtNgayVe" runat="server" AutoPostBack="True"></asp:TextBox><asp:CalendarExtender ID="CalendarExtender2"
                runat="server" TargetControlID="txtNgayVe" >
            </asp:CalendarExtender>
        </td>
    </tr>
     <tr>
        <td class="style1">
            Người lớn
        </td>
        <td class="style2">            
         <asp:DropDownList ID="ddlNguoiLon" runat="server">             
             <asp:ListItem>1</asp:ListItem>
             <asp:ListItem>2</asp:ListItem>
             <asp:ListItem>3</asp:ListItem>
             <asp:ListItem>4</asp:ListItem>
             <asp:ListItem>5</asp:ListItem>
         </asp:DropDownList>
        </td>
    </tr>
     <tr>
        <td class="style1">
            Trẻ em
        </td>
        <td class="style2">
            <asp:DropDownList ID="ddlTreEm" runat="server">
                <asp:ListItem>0</asp:ListItem>
                <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
                <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
         </asp:DropDownList>
        </td>
    </tr>
     <tr>
        <td class="style1">
            Em bé
        </td>
        <td class="style2">
            <asp:DropDownList ID="ddlEmBe" runat="server">
                <asp:ListItem>0</asp:ListItem>
                <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
                <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
         </asp:DropDownList>
        </td>
    </tr>
     <tr>
        <td class="style1">
            Hạng vé
        </td>
        <td class="style2">
            <asp:DropDownList ID="ddlHangVe" runat="server">
                <asp:ListItem Value="TietKiem">Tiết kiệm</asp:ListItem>
                <asp:ListItem Value="PhoThong">Phổ thông</asp:ListItem>
                <asp:ListItem Value="ThuongGia">Thương gia</asp:ListItem>
         </asp:DropDownList>
        </td>
    </tr>
    <tr>
            <td colspan="2" style="text-align:center;"><asp:Button ID="btnTimChuyenBay" runat="server" 
                    Text="Tìm chuyến bay" Font-Names="Arial" Font-Size="Large" 
                    ForeColor="#3333CC" onclick="btnTimChuyenBay_Click" /></td>
        </tr>
    </table>    
    </div>
    <br />
    <hr />

</asp:Content
>